package com.timemanager.util;



/**
 * Created by He ZQ on 2016/3/27.
 * Email: Alexmocer@hotmail.com
 */
public class Utility {

    public static String formatTime(long time) {
        if (time != 0) {
            int hour = (int) time / 1000 / 60 / 60;
            int min = (int) time / 1000 / 60 % 60;
            int sec = (int) time / 1000 % 60;
            return hour + "时" + min + "分" + sec + "秒";
        } else {
            return "null";
        }
    }

}
